<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

error_reporting(E_ALL);


// [ 应用入口文件 ]
mb_internal_encoding('utf-8');
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');

//图片路径
define('NEWS_PATH','/static/img/news');
define('PAGE_PATH','/static/img/page');
define('KV_PATH','/static/img/kv');
define('VIDEO_PATH','/static/img/video');
define('HOME_PATH','/static/img/home');

//图片上传路径判断是Linux还是Windows
if(PHP_OS == "Linux"){
    $env_public = $_SERVER['DOCUMENT_ROOT'];
    //$env_node = dirname(dirname($env_public)). '/qycache';
}elseif (PHP_OS == "WINNT"){
    $env_public = $_SERVER['CONTEXT_DOCUMENT_ROOT'];
    //$env_node = $env_public . '/node';
    //var_dump($env_public);exit;E:/www/lead_star/public

}

// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';



/*if (PHP_OS == 'Linux') {
    $env_public = $_SERVER['DOCUMENT_ROOT'];
    $env_node = dirname(dirname($env_public)). 'zhenfei-node-test-chenyuqi/public';
} else if (PHP_OS == 'WINNT') {
    $env_public = $_SERVER['CONTEXT_DOCUMENT_ROOT'];
    $env_node = $env_public . '/node';
}*/
